package com.hang.ixin.controller;

import com.hang.ixin.POJO.MyFriends;
import com.hang.ixin.service.impl.Test1Impl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloController {
    @Autowired
    Test1Impl test1Impl;

    @GetMapping("/hello")
    public MyFriends hello() {
        return test1Impl.find("2");
    }
}
